const express = require('express');
const router = express.Router();
const {
  getReplyListOfComment,
  getReplyById,
  addReply,
  likeReply,
  unlikeReply,
  deleteReply
} = require('../controller/reply');

router.get('/comment/:id', getReplyListOfComment);

router.get('/:id', getReplyById);

router.post('/', addReply);

router.post('/:id/like', likeReply);

router.delete('/:id/like', unlikeReply);

router.delete('/:id', deleteReply);

module.exports = router;
